﻿using System.Reflection;

namespace MagicOnion;

internal static class Utils
{
    public static bool IsNullable(this Type type)
    {
        return type.GetTypeInfo().IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
    }
}